<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="referrer" content="no-referrer" />
    <link rel="icon" href="/favicon.ico" />
    <title>大连印山官网</title>
    <link rel="stylesheet" href="./assets/style.css" />
  </head>
  <body>
    <div class="wrapper favorites">
      <header class="index-top">
        <div class="home-top-nav">
          <div class="top-nav-index">
            <div class="nav-list">
              <p class="list-text" id="login">【Log in】</p>
              <p class="list-text signup">【Sign up】</p>
              <div class="list-box">
                <p class="box-quick">My Orders</p>
                <p class="box-quick Orders">Favorites</p>
                <p class="box-quick Favourite">My goint</p>
              </div>
            </div>
            <p class="nav-title">
              <span class="list-text mobile-login">【Log in】</span>
              SCHOLARSHIPofCHINA
            </p>
          </div>
        </div>
        <div class="index-info">
          <div class="nav-box">
            <div class="nav-title">Programs</div>
            <ul class="sort-item">
              <li class="item-list">
                <p class="tit">Teaching Language <i class="icon-up"></i></p>
                <div class="more">
                  <p>Chinese</p>
                  <p>English</p>
                </div>
              </li>
              <li class="item-list">
                <p class="tit">Degree <i class="icon-up"></i></p>
                <div class="more">
                  <p>Chinese Language</p>
                  <p>Foundation Bachelor</p>
                  <p>Master</p>
                  <p>PhD</p>
                </div>
              </li>
              <li class="item-list">
                <p class="tit">Scholarship <i class="icon-up"></i></p>
                <div class="more">
                  <p>Full</p>
                  <p>Partial</p>
                  <p>Self-sponsored</p>
                </div>
              </li>
              <li class="item-list">
                <p class="tit">Major <i class="icon-up"></i></p>
                <div class="more">
                  <p>Agriculture</p>
                  <p>Economics</p>
                  <p>Fine Arts</p>
                  <p>Legal Studies</p>
                  <p>Literature</p>
                  <p>Management</p>
                  <p>Medicine</p>
                  <p>Science</p>
                </div>
              </li>
            </ul>
            <div class="sort-subcategory">
              <p class="subcategory-close"></p>
              <p class="subcategory-name"></p>
              <ul class="subcategory-item"></ul>
            </div>
          </div>
          <div class="content-box">
            <div class="info-box">
              <div class="info-search">
                <div class="search-self">
                  <div
                    class="el-input el-input-group el-input-group--append el-input-group--prepend"
                  >
                    <input
                      type="text"
                      autocomplete="off"
                      placeholder="Engineering Management"
                      class="el-input__inner"
                    />
                    <div class="el-input-group__append">
                      <button
                        type="button"
                        class="el-button search-btn el-button--default"
                      >
                        <i class="el-icon-search"></i>
                      </button>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <ul class="info-search-list">
              <li class="active">Home</li>
              <li>Online Exhibition</li>
              <li>Scholarships</li>
              <li>Self-financed Programs</li>
              <li>Universities</li>
              <li>Apply</li>
              <li>About US</li>
            </ul>
          </div>
        </div>
      </header>
      <div class="home-index">
        <div class="index-sort">
          <div class="side-nav">
            <div class="nav-user">
              <img src="https://center.istudyedu.com/images/avatar.png"
              class="user-img">
              <p class="user-name">
                UZAIR MUHAMAD
              </p>
              <p class="user-email">
                choho7@163.com
              </p>
            </div>
            <div class="nav-info">
              <p class="info-title">
                Management
              </p>
              <ul class="info-item">
                <li class="info-list">
                  <a href="./order.html"> My Orders</a>
                </li>
                <li class="info-list">
                  <a href="./authentication.html">Apply</a>
                </li>
                <li class="info-list active">
                  My Favorites
                </li>
              </ul>
            </div>
          </div>
        </div>
        <div class="content-box">
          <div class="favorite-index personal-pulick">
            <p class="personal-title">
              My Favorites
            </p>
            <div class="favorite-content">
              <div class="el-tabs el-tabs--top">
                <div class="el-tabs__header is-top">
                  <div class="el-tabs__nav-wrap is-top">
                    <div class="el-tabs__nav-scroll">
                      <div role="tablist" class="el-tabs__nav is-top" style="transform: translateX(0px);">
                        <div class="el-tabs__active-bar is-top" style="width: 61px; transform: translateX(0px);">
                        </div>
                        <div id="tab-Programs" aria-controls="pane-Programs" role="tab" tabindex="0"
                        class="el-tabs__item is-top is-active" aria-selected="true">
                          Programs
                        </div>
                        <!-- <div id="tab-Universities" aria-controls="pane-Universities" role="tab"
                        tabindex="-1" class="el-tabs__item is-top">
                          Universities
                        </div> -->
                      </div>
                    </div>
                  </div>
                </div>
                <div class="el-tabs__content">
                  <div role="tabpanel" id="pane-Programs" aria-labelledby="tab-Programs"
                  class="el-tab-pane" style="">
                    <div class="public-goods">
                      <div class="goods-list">
                        <div class="list-time">
                          <div class="time-info">
                            <div class="info-top">
                              <img src="https://center.istudyedu.com/uploads/files/e2814e8d9b6d056a66035ee014dedca6.jpg"
                              class="info-img">
                              <div class="info-tag">
                                <div class="tag-right">
                                  <span class="el-tag el-tag--info el-tag--dark">
                                    Best Seller
                                  </span>
                                  <span class="el-tag el-tag--info el-tag--dark">
                                    New
                                  </span>
                                  <span class="el-tag el-tag--info el-tag--dark">
                                    High Success Rate
                                  </span>
                                  <span class="el-tag el-tag--info el-tag--dark">
                                    Fast Offer
                                  </span>
                                  <span class="el-tag el-tag--info el-tag--dark">
                                    EDUPRCHINA’s Choice
                                  </span>
                                </div>
                                <span class="el-tag el-tag--info el-tag--dark">
                                  ISSP
                                </span>
                              </div>
                              <div class="info-name">
                                <p class="name-text">
                                  Mechanical Engineering
                                </p>
                              </div>
                            </div>
                            <div class="info-user">
                              <p class="user-id">
                                Program ID: CBE25012223516
                              </p>
                              <p class="user-text">
                                Tuition: RMB/year
                              </p>
                              <p class="user-text">
                                <span class="text-color">
                                  10,000
                                </span>
                                <span class="text-history">
                                  12,000
                                </span>
                              </p>
                              <p class="user-text">
                                City: Zhuzhou, Hunan
                              </p>
                              <p class="user-text">
                                Degree: Bachelor
                              </p>
                              <p class="user-text te">
                                Teaching language: English
                              </p>
                              <i class="el-tooltip info-collect item active" aria-describedby="el-tooltip-8504"
                              tabindex="0">
                              </i>
                            </div>
                          </div>
                          <div class="time-info">
                            <div class="info-top">
                              <img src="https://center.istudyedu.com/uploads/files/e2814e8d9b6d056a66035ee014dedca6.jpg"
                              class="info-img">
                              <div class="info-tag">
                                <div class="tag-right">
                                  <span class="el-tag el-tag--info el-tag--dark">
                                    Best Seller
                                  </span>
                                  <span class="el-tag el-tag--info el-tag--dark">
                                    New
                                  </span>
                                  <span class="el-tag el-tag--info el-tag--dark">
                                    High Success Rate
                                  </span>
                                  <span class="el-tag el-tag--info el-tag--dark">
                                    Fast Offer
                                  </span>
                                  <span class="el-tag el-tag--info el-tag--dark">
                                    EDUPRCHINA’s Choice
                                  </span>
                                </div>
                                <span class="el-tag el-tag--info el-tag--dark">
                                  ISSP
                                </span>
                              </div>
                              <div class="info-name">
                                <p class="name-text">
                                  Mechanical Engineering
                                </p>
                              </div>
                            </div>
                            <div class="info-user">
                              <p class="user-id">
                                Program ID: CBE25012223516
                              </p>
                              <p class="user-text">
                                Tuition: RMB/year
                              </p>
                              <p class="user-text">
                                <span class="text-color">
                                  10,000
                                </span>
                                <span class="text-history">
                                  12,000
                                </span>
                              </p>
                              <p class="user-text">
                                City: Zhuzhou, Hunan
                              </p>
                              <p class="user-text">
                                Degree: Bachelor
                              </p>
                              <p class="user-text te">
                                Teaching language: English
                              </p>
                              <i class="el-tooltip info-collect item active" aria-describedby="el-tooltip-8504"
                              tabindex="0">
                              </i>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <!---->
                  </div>
                  <div role="tabpanel" id="pane-Universities" aria-labelledby="tab-Universities"
                  class="el-tab-pane" style="display: none;" aria-hidden="true">
                    <div class="el-empty">
                      <div class="el-empty__image">
                        <svg viewBox="0 0 79 86" version="1.1" xmlns="http://www.w3.org/2000/svg"
                        xmlns:xlink="http://www.w3.org/1999/xlink">
                          <defs>
                            <linearGradient id="linearGradient-1-2" x1="38.8503086%" y1="0%" x2="61.1496914%"
                            y2="100%">
                              <stop stop-color="#FCFCFD" offset="0%">
                              </stop>
                              <stop stop-color="#EEEFF3" offset="100%">
                              </stop>
                            </linearGradient>
                            <linearGradient id="linearGradient-2-2" x1="0%" y1="9.5%" x2="100%" y2="90.5%">
                              <stop stop-color="#FCFCFD" offset="0%">
                              </stop>
                              <stop stop-color="#E9EBEF" offset="100%">
                              </stop>
                            </linearGradient>
                            <rect id="path-3-2" x="0" y="0" width="17" height="36">
                            </rect>
                          </defs>
                          <g id="Illustrations" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                            <g id="B-type" transform="translate(-1268.000000, -535.000000)">
                              <g id="Group-2" transform="translate(1268.000000, 535.000000)">
                                <path id="Oval-Copy-2" d="M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z"
                                fill="#F7F8FC">
                                </path>
                                <polygon id="Rectangle-Copy-14" fill="#E5E7E9" transform="translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) "
                                points="13 58 53 58 42 45 2 45">
                                </polygon>
                                <g id="Group-Copy" transform="translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)">
                                  <polygon id="Rectangle-Copy-10" fill="#E5E7E9" transform="translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) "
                                  points="2.84078316e-14 3 18 3 23 7 5 7">
                                  </polygon>
                                  <polygon id="Rectangle-Copy-11" fill="#EDEEF2" points="-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43">
                                  </polygon>
                                  <rect id="Rectangle-Copy-12" fill="url(#linearGradient-1-2)" transform="translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) "
                                  x="38" y="7" width="17" height="36">
                                  </rect>
                                  <polygon id="Rectangle-Copy-13" fill="#F8F9FB" transform="translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) "
                                  points="24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12">
                                  </polygon>
                                </g>
                                <rect id="Rectangle-Copy-15" fill="url(#linearGradient-2-2)" x="13" y="45"
                                width="40" height="36">
                                </rect>
                                <g id="Rectangle-Copy-17" transform="translate(53.000000, 45.000000)">
                                  <mask id="mask-4-2" fill="white">
                                    <use xlink:href="#path-3-2">
                                    </use>
                                  </mask>
                                  <use id="Mask" fill="#E0E3E9" transform="translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) "
                                  xlink:href="#path-3-2">
                                  </use>
                                  <polygon id="Rectangle-Copy" fill="#D5D7DE" mask="url(#mask-4-2)" transform="translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) "
                                  points="7 0 24 0 20 18 -1.70530257e-13 16">
                                  </polygon>
                                </g>
                                <polygon id="Rectangle-Copy-18" fill="#F8F9FB" transform="translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) "
                                points="62 45 79 45 70 58 53 58">
                                </polygon>
                              </g>
                            </g>
                          </g>
                        </svg>
                      </div>
                      <div class="el-empty__description">
                        <p>
                          No universities
                        </p>
                      </div>
                      <!---->
                    </div>
                    <!---->
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="index-footer">
        <div class="box">
          <p Class="logo">SCHOLARSHIPofCHINA</p>
          <div class="card">
            <ul class="list">
              <li class="title">Contact Us</li>
              <li class="address">Address：Xingzhihui Business Garden, No.19, Xinghuo Road,</li>
              <li style="margin-top: 10px;">mail: service@eduprchina.com</li>
            </ul>
            <ul class="list">
              <li class="title">Account analysis</li>
              <li><a href="./self-financed.html">Our Story</a></li>
              <li><a href="./self-financed.html">Our Story</a></li>
              <li><a href="./self-financed.html">Our Story</a></li>
            </ul>
            <ul class="list">
              <li class="title">Guide</li>
              <li><a href="./self-financed.html">Hot City</a></li>
              <li><a href="./self-financed.html">Our Civil Engineering</a></li>
              <li><a href="./self-financed.html">Computer Science</a></li>
            </ul>
            <ul class="list">
              <li class="title">About Us</li>
              <li>About EDUPRCHINA</li>
              <li>Cooperate with Us</li>
              <li>News & Events</li>
            </ul>
            <ul class="list">
              <li class="title">FOLLOW US</li>
              <li style="display: flex;align-items: center;opacity: 1;">
                <img width="40" src="./assets/images/f.png" alt=""> &nbsp;
                <img width="40" src="./assets/images/in.png" alt=""> &nbsp;
                <img width="35" src="./assets/images/tg.png" alt=""> &nbsp;&nbsp;
                <img width="35" src="./assets/images/w.png" alt="">
              </li>
            </ul>
          </div>
        </div>
      </div>
      <div class="copyright">
        © 2022 EDUPRCHINA. All rights reserved.
      </div>
      <div class="index-code">
        <img width="100%" src="./assets/images/code.png" alt="" />
        <p class="msg">微信扫码咨询</p>
      </div>
      <div class="log-box">
        <div class="mobile-login">
          <img width="32" src="./assets/images/login.png" />
          Log in
        </div>
        <div class="mobile-signup">
          <img width="26" src="./assets/images/reg.png" />
          Sign Up
        </div>
      </div>
    </div>
    <div class="login-index hide">
      <div class="el-dialog__wrapper" style="z-index: 2069;">
        <div class="el-dialog" style="margin-top: 15vh; width: 1200px;">
          <div class="el-dialog__header">
            <span class="el-dialog__title"></span>
          </div>
          <div class="el-dialog__body">
            <div class="login-content">
              <i class="icon-close" id="close"></i> 
              <img src="./assets/images/login-index-bg.jpg" class="content-img">
              <div class="content-info">
                <p class="tit">SCHOLARSHIPofCHINA</p>
                <div class="info-ipt el-input el-input--suffix">
                  <input type="text" autocomplete="off" placeholder="Username or email" class="el-input__inner">
                </div> 
                <div class="info-ipt te el-input el-input--suffix">
                  <input type="password" autocomplete="off" placeholder="Password" class="el-input__inner">
                  <span class="el-input__suffix">
                    <span class="el-input__suffix-inner"></span>
                  </span>
                </div>
                <div class="info-operate">
                  <span class="operate-sign signup">Sign up</span>
                  <span class="operate-pwd" id="password">Forgot password?</span>
                </div> 
                <button type="button" class="el-button info-btn el-button--primary">
                  <span>Log in</span>
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="v-modal" style="z-index: 2068;"></div>
    </div>
  </body>
</html>
<script>
  function getParamsUsingURLSearchParams() {
    const params = new URLSearchParams(window.location.href.split('?')[1] || '');
    const result = {};
    // 获取所有参数
    params.forEach((value, key) => {
      // 处理重复参数名的情况，转为数组
      if (result[key]) {
        if (!Array.isArray(result[key])) {
          result[key] = [result[key]];
        }
        result[key].push(value);
      } else {
        result[key] = value;
      }
    });
    
    return result;
  }
  const { login } = getParamsUsingURLSearchParams()
  if(login) {
    document.querySelector('.login-index').classList.remove('hide')
  }
  function detectDeviceType() {
    const width = window.innerWidth;
    
    // 常见设备类型的分辨率阈值（可根据需要调整）
    const thresholds = {
      mobile: 768,  // 小于此值为移动设备
      tablet: 1024  // 小于此值且大于等于mobile为平板设备
    };
    
    if (width < thresholds.mobile) {
      return 'mobile';
    }{
      return 'desktop';
    }
  }

  // 初始检测
  let currentDeviceType = detectDeviceType();
  console.log(`初始设备类型: ${currentDeviceType}`);
  if(currentDeviceType == 'mobile'){
    document.querySelector('body').classList.add('mobile');
  }
  // 监听窗口大小变化事件
  window.addEventListener('resize', function() {
    const newDeviceType = detectDeviceType();
    
    // 仅在设备类型变化时执行操作
    if (newDeviceType !== currentDeviceType) {
      console.log(`设备类型已变更: ${currentDeviceType} → ${newDeviceType}`);
      currentDeviceType = newDeviceType;
      if(currentDeviceType == 'mobile'){
        document.querySelector('body').classList.add('mobile');
      }else{
        document.querySelector('body').classList.remove('mobile');
      }
    }
  });

  const navList = document.querySelector('.nav-box .sort-item').querySelectorAll('.item-list')
  navList.forEach((element) => {
    element.querySelector('.tit').addEventListener('click', function() {
      const isActive = this.parentNode.classList.contains('active')
      navList.forEach((el) => {
        el.classList.remove('active');
      });
      if (!isActive) {
        this.parentNode.classList.add('active');
      }
    });
    const tabs = element.querySelector('.more').querySelectorAll('p')
    tabs.forEach((el) => {
      el.addEventListener('click', function() {
        const isActive = this.classList.contains('active')
        navList.forEach((e) => {
          const p = e.querySelector('.more').querySelectorAll('p')
          p.forEach((pl) => {
            pl.classList.remove('active')
          })
        });
        if (!isActive) {
          this.classList.add('active')
          const parentElement = this.parentElement;
          const previousSibling = parentElement.previousElementSibling;
          const title = previousSibling.textContent
          document.querySelector('.index-info .subcategory-name').innerHTML = title
          const list =  document.querySelector('.index-info .subcategory-item')
          list.innerHTML = ''
          parentElement.querySelectorAll('p').forEach(te => {
            const newLi = document.createElement('li');
            newLi.innerHTML = te.textContent
            list.appendChild(newLi)
          })
          document.querySelector('.index-info .sort-subcategory').style.display = 'block'
        } else{
          document.querySelector('.index-info .sort-subcategory').style.display = 'none'
        }
      });
    })
  });
  document.querySelectorAll('.subcategory-close').forEach((element) => {
    element.addEventListener('click', function() {
      this.parentNode.style.display = 'none'
      const parentElement = this.parentElement;
      const previousSibling = parentElement.previousElementSibling;
      previousSibling.querySelectorAll('.item-list').forEach((el) => {
        el.querySelectorAll('p').forEach((elm) => {
          elm.classList.remove('active')
        })
      })
    })
  })
  const infoLists = document.querySelectorAll('.info-list');
  infoLists.forEach((listItem) => {
    listItem.addEventListener('click', function () {
      infoLists.forEach((otherListItem) => {
        otherListItem.classList.remove('active');
      });
      this.classList.add('active');
    });
  });

  document.querySelector('#login').addEventListener('click', function() {
    document.querySelector('.login-index').classList.remove('hide')
  });
  document.querySelector('#close').addEventListener('click', function() {
    document.querySelector('.login-index').classList.add('hide')
  })
  document.querySelectorAll('.mobile-login').forEach((element) => {
    element.addEventListener('click', function() {
      window.location.href = './mobile-login.html'
    })
  })
  
  document.querySelectorAll('.signup').forEach((element) => {
    element.addEventListener('click', function() {
      window.location.href = './signup.html'
    })
  })
  document.querySelectorAll('.mobile-signup').forEach((element) => {
    element.addEventListener('click', function() {
      window.location.href = './mobile-signup.html'
    })
  })
  document.querySelector('#password').addEventListener('click', function() {
    window.location.href = './password.html'
  })
</script>